<template>
  <div>
    <h2>{{ value }}</h2>

    <button @click="changeValue">第二个组件</button>
  </div>
</template>

<script>
export default {
  name: 'MyModule',
  props: {
    value: String,
  },
  methods: {
    changeValue() {
      this.$emit('input', 'abc')
    },
  },
}
</script>

<style scoped></style>
